package com.xhtt.modules.cfg.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhtt.modules.cfg.dao.CfgPumpRelateMapper;
import com.xhtt.modules.cfg.entity.CfgPumpRelate;
import com.xhtt.modules.cfg.model.ValidPumpParam;
import com.xhtt.modules.cfg.service.CfgPumpRelateService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author feipc
 * @since 2019-02-20
 */
@Service
public class CfgPumpRelateServiceImpl extends ServiceImpl<CfgPumpRelateMapper, CfgPumpRelate> implements CfgPumpRelateService {

    @Override
    public List<CfgPumpRelate> getValidRelateObject(ValidPumpParam pumpParam) {
        return baseMapper.getValidRelateObject(pumpParam.getPumpId(), pumpParam.getProductId());
    }
}
